<template>
  <div class="login">
    <div class="head-logo">
      <img src="@/assets/login/logo.png" alt="#">
    </div>
    <div class="login-box">
      <div class="title"><span>登 录</span></div>
      <input type="text" class="input">
      <input type="text" class="input">
      <div class="prompt"><span>忘记密码?</span></div>
      <p class="login-btn">登录</p>
    </div>
    <div class="login-box">
      <div class="title"><span>注 册</span></div>
      <p class="login-btn" style="width: 280px;">建议注册个人账号，体验个性购物</p>
      <p class="login-btn" @click="$router.push('/register')">注册</p>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.login {
  height: 100vh;
  background: url('../assets/login/login-bg.png');
  background-size: 100%;
  overflow: hidden;
  .head-logo {
    display: flex;
    justify-content: center;
    background: #fff;
    img {
      width: 200px;
    }
  }
  .login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    .input {
      width: 60vw;
      height: 30px;
      line-height: 30px;
      outline: none;
      border: 1px solid #333;
      margin-top: 30px;
      text-indent: 10px;
    }
    .prompt {
      width: 100%;
      font-size: 12px;
      color: #919191;
      padding-left: 20vw;
      margin-top: 20px;
    }
    .login-btn {
      width: 140px;
      line-height: 40px;
      text-align: center;
      background: #000;
      border-radius: 1px;
      color: #fff;
      margin-top: 20px;
    }
  }
  .title {
    width: 100%;
    padding-left: 20vw;
    margin-top: 10vw;
    font-size: 24px;
    font-weight: 500;
    span {
      border-bottom: 2px solid #333;
    }
  }
}
</style>